package com.yoooya.base.third.model.vo.cp.messagebuilder;


import com.yoooya.base.third.common.WxConsts;
import com.yoooya.base.third.model.vo.cp.WxCpMessage;

/**
 * 文本消息builder
 * 
 * <pre>
 * 用法: WxCustomMessage m = WxCustomMessage.TEXT().content(...).toUser(...).build();
 * </pre>
 * 
  * @创建人 Sun Yijing
 * @创建时间 2018-07-08
 */
public final class TextBuilder extends BaseBuilder<TextBuilder> {
	private String content;

	public TextBuilder() {
		this.msgType = WxConsts.CUSTOM_MSG_TEXT;
	}

	public TextBuilder content(String content) {
		this.content = content;
		return this;
	}

	public WxCpMessage build() {
		WxCpMessage m = super.build();
		m.setContent(this.content);
		return m;
	}
}
